﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Caliburn.Micro;
using GTServices.Entities;
using GTServices.WPF.Client.Interfaces;
namespace GTServices.WPF.Client.ViewModels.Entities
{
    public class GrepRequestViewModel : PropertyChangedBase, IEntityViewModel
    {
        private GrepRequest  _grepRequest;
        public GrepRequest GrepRequest
        {
            get { return _grepRequest; }
            set
            {
                _grepRequest = value;
                NotifyOfPropertyChange(() => GrepRequest); 
            }
        }
        public Object Model
        {
            get { return GrepRequest; }
            set
            {
                if (value is GrepRequest)
                    GrepRequest = value as GrepRequest;
            }
        }
        public GrepRequestViewModel()
        {

        }
    }
}
